﻿using System;
using System.Collections.Generic;
using System.Data;
using Pansoft.HIME.Base.Entities;

namespace Pansoft.HIME.Manager
{
    public class OptionCacheManager
    {
        private readonly Dictionary<string, string> _BusinessTypeIdNameMap;
        private readonly Dictionary<int, string> _EvaluationTypeIdRemarkMap;
        private readonly Dictionary<string, string> _StaffIdNameMap;
        private IEnumerable<Counter> _CounterInfo;
        private DataTable _EvaluationTypeInfo;
        private string _LoginPassword;
        private DataTable _PublicPara;
        private DataTable _UserInfo;
        private DataTable _WintypeInfo;

        #region 单例

        private static readonly Lazy<OptionCacheManager> _Instance = new Lazy<OptionCacheManager>(() => new OptionCacheManager());

        private OptionCacheManager()
        {
            _BusinessTypeIdNameMap = new Dictionary<string, string>();
            _StaffIdNameMap = new Dictionary<string, string>();
            _EvaluationTypeIdRemarkMap = new Dictionary<int, string>();
        }

        public static OptionCacheManager Instance
        {
            get { return _Instance.Value; }
        }

        #endregion

        public IEnumerable<Counter> GetCounterInfo()
        {
            throw new NotImplementedException();
        }

        public IEnumerable<BusinessType> GetBusinessTypeInfo()
        {
            throw new NotImplementedException();
        }

        public IEnumerable<EvaluationResultType> GetEvaluationTypeInfo()
        {
            throw new NotImplementedException();
        }

        public IEnumerable<Staff> GetStaffInfo()
        {
            throw new NotImplementedException();
        }

        public Organization GetDepartInfo()
        {
            throw new NotImplementedException();
        }
    }
}